local Lua__zhuanghuo2 = fk.CreateSkill {
  name = "Lua__zhuanghuo2",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable {
  ["Lua__zhuanghuo2"] = "撞祸",
  [":Lua__zhuanghuo2"] = "锁定技，若你有“货”，你即将造成的伤害改为X（X为你的“货”的数量）。",
}

Lua__zhuanghuo2:addEffect(fk.PreDamage, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(Lua__zhuanghuo2.name) and #player:getPile("$huo") > 0
  end,
  on_use = function(self, event, target, player, data)
    data.damage = #player:getPile("$huo")
  end,
})

return Lua__zhuanghuo2